package com.smalljj.service.impl;

import org.springframework.beans.factory.annotation.Autowired;

import com.smalljj.bean.Article;
import com.smalljj.dao.ArticleDao;
import com.smalljj.service.ArticleService;

import finaler.util.Page;
import finaler.util.PageList;

public class ArticleServiceImpl implements ArticleService {

	@Autowired
	private ArticleDao articleDao;
	
	@Override
	public void insert(Article article) throws Exception {
		articleDao.insert(article);
	}

	@Override
	public PageList getList(Page page) throws Exception {
		return articleDao.getList(page);
	}
	
}
